package com.day26;

public class Student {
    String name;
    String stuNo;//学号
    int age;
    String sex;
    String pickName;//呢称

    public Student(){
        //super();
    }

    public Student(String name){
        //super();
        this.name=name;//this.name是当前的name属性，后面的那个name是参数里的name
    }

    public Student(String name,String stuNo){
        //super();
        this.name=name;
        this.stuNo=stuNo;
    }

    public Student(String name,String stuNo,int age){
        //super();//调用父类的构造器
        this.name=name;
        this.stuNo=stuNo;
        this.age=age;
    }

    public Student(String name,String stuNom,String sex,int age){
        //super();
        this.name=name;
        this.stuNo=stuNo;
        this.age=age;
        this.sex=sex;
    }

    public Student(String name,String stuNo,int age,String sex,String pickName){
        //super();
        this.name=name;
        this.stuNo=stuNo;
        this.age=age;
        this.sex=sex;
        this.pickName=pickName;
    }
}
